﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CodeGenerator.Misc;

namespace CodeGenerator.Forms
{
    public partial class FGlobleProperty : Form
    {
        public FGlobleProperty()
        {
            InitializeComponent();
        }

        private void BSave_Click(object sender, EventArgs e)
        {
            SetData();
        }

        private void SetData()
        {
            GloblePropertyHelper.TopNameSpace = TB_TopNameSpace.Text;
            GloblePropertyHelper.SecondNameSpace = TB_SecondNameSpace.Text;
        }

        private void LoadData()
        {
            TB_TopNameSpace.Text = GloblePropertyHelper.TopNameSpace;
            TB_SecondNameSpace.Text = GloblePropertyHelper.SecondNameSpace;
        }

        private void FGlobleProperty_Load(object sender, EventArgs e)
        {
            LoadData();
        }

    }
}
